<%@page import="com.frogs.framework.util.*,org.slf4j.Logger,org.slf4j.LoggerFactory"%>
<%@ page language="java" import="com.frogs.framework.web.filter.SpringWebContext" pageEncoding="gbk" %>
<%@ page import="org.springframework.jdbc.core.*,java.util.*,com.alibaba.fastjson.*" %>
<%
try{
	
	JdbcTemplate jdbcTemplate = (JdbcTemplate) SpringWebContext.getSpringContext().getBean("jdbcTemplate");
	List<Map<String,Object>> list = jdbcTemplate.queryForList("SELECT 1 FROM DUAL");
	if(list.size() > 0){
		out.println(1);
		return ;
	}
	out.println(0);
	return ;
}
catch(Exception e){
	out.println("0");
}
%>
